package cn.zust.ly.Actual.Ac01;

import java.util.Scanner;

/**
 * Created by liy on 2016/11/28.
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(),b = sc.nextInt(), c = sc.nextInt();
        System.out.println(getMinCommonMultiple(a, getMinCommonMultiple(b, c)));

//        int x = getMaxCommonDivisor(a, b),
//                y = getMaxCommonDivisor(a, c),
//                z = getMaxCommonDivisor(b, c);

//        System.out.println(a*b*c/(x*y*z));
//        System.out.println(x+" "+y+" "+z);

    }

    static int getMinCommonMultiple(int x, int y) {
        return x*y/getMaxCommonDivisor(x, y);
    }

    static int getMaxCommonDivisor(int x, int y) {
        if (x == y) return x;
        if (x < y) {int z = x; x = y; y = z;}
        if (x % y == 0) return y;
        else return getMaxCommonDivisor(y, x%y);
    }

}
